var app = new Vue({
	el:"#container",	
	data: {
		listhui:[],
		ww : "",
	},
	mounted() {
		this.selecthui();
	},
	methods:{
		selecthui(userName){
			let data= new URLSearchParams;
			data.append("pageNum",1),
			data.append("pageSize",10),
			data.append("a",3);
			data.append("userName",userName);
			axios({
				method : "post",
				url : "churuy/chuyuanselect",
				data : data
			}).then(response=>{
				this.listhui=response.data.data
			})
		},
		ruyuan(a){
			let data = new URLSearchParams;
			data.append("id",a);
			data.append("status",1)
			axios({
				method :"post",
				url : "churuy/waichujd",
				data : data,
			}).then(response=>{
					if(response.data.data=="ok"){
						alert("以同意反院")
						this.selecthui()
					}
			})
		},
		chaxun(){
			this.selecthui(app.ww)
		}
	
		
	}
})